package com.ruoyi.system.api.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseQuery;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel(value="MaterialInfoReq对象", description="资料信息入参")
@Accessors(chain = true)
public class MaterialInfoReq extends BaseQuery implements Serializable {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "所属年级")
    private Integer grade;

    @ApiModelProperty(value = "所属科目")
    private Integer subject;

    @ApiModelProperty(value = "所属年份")
    private Integer age;

    @ApiModelProperty(value = "所属学期")
    private Integer semester;

    @ApiModelProperty(value = "资料名称")
    private String materialName;

    @ApiModelProperty(value = "所属地域")
    private String region;

    @ApiModelProperty(value = "版本")
    private String version;
    private String collection;

    @ApiModelProperty(value = "资料上传地址")
    private String url;

    @ApiModelProperty(value = "是否免费")
    private Integer isFree;

    @ApiModelProperty(value = "收费金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "浏览量")
    private Integer readNum;

    @ApiModelProperty(value = "下载量")
    private Integer downNum;

    @ApiModelProperty(value = "上传用户ID")
    private Long userId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "订单状态")
    private Integer status;

    @ApiModelProperty(value = "公众号id")
    private String appid;

    @ApiModelProperty(value = "排序类型：1最新,2最热")
    private String pxType;
}
